FROM atlassian/jira-software:8.14.1


USER root

# 将代理破解包加入容器
COPY "atlassian-agent.jar" /opt/atlassian/jira/
COPY "mysql-connector-java-5.1.46.jar" /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/


# 设置启动加载代理包
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh





